/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#include "M2AnimFile.h"

namespace PQGameCore
{
	/*
		The structure of .anims actually pretty easy. 
		There are multiple blocks with each two subblocks.
		These subblocks are:
		1.timestamps
		2.keys.
	*/
	M2AnimFile::~M2AnimFile(void)
	{
		if(_buf){
			delete _buf;
		}
	}

	M2AnimFile::M2AnimFile(PQEngine::FileBase *f)
		: _file(f)
	{
		assert(f);

		_fileSize=_file->getSize();
		_buf=new char[_fileSize];
		memcpy(_buf,_file->getBuffer(),_fileSize);
		

	}

}
